package com.gccloud.tgyfirst.friend.common;

import com.gccloud.starter.plugins.validator.group.Insert;
import com.gccloud.starter.plugins.validator.group.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class FriendCommon {

    @ApiModelProperty(notes = "主键")
    @NotBlank(message = "ID不能为空", groups = {Update.class})
    private String id;

    @ApiModelProperty(notes = "姓名")
    @NotBlank(message = "姓名不能为空", groups = {Insert.class, Update.class})
    private String name;

    @ApiModelProperty(notes = "年龄")
    @NotBlank(message = "年龄不能为空", groups = {Insert.class, Update.class})
    private Integer age;

    @ApiModelProperty(notes = "性别")
    @NotBlank(message = "性别不能为空", groups = {Insert.class, Update.class})
    private String sex;

//    @ApiModelProperty(notes = "性别枚举")
//    @NotBlank(message = "性别枚举不能为空", groups = {Insert.class, Update.class})
//    private String sexa;

    @ApiModelProperty(notes = "备注")
    private String note;
}

